package com.gao.test;

/**
 * @Author: ShanYuqing
 * @Version: v1.0
 */
public class Student extends Person {
    private Double score;
    public Student() {
    }

    public Student(String name, int age,double score) {
        super(name, age);
        this.score =score;
    }
    public void study(){
        System.out.println("姓名为"+super.getName()+",年龄为"+super.getAge()+"岁，成绩为"+score+"的学生，正在学习");
    }
}
